package package1;

import java.awt.BorderLayout;
import java.awt.EventQueue;

import javax.swing.JFrame;
import javax.swing.JPanel;
import javax.swing.border.EmptyBorder;
import javax.swing.JButton;
import java.awt.event.ActionListener;
import java.awt.event.ActionEvent;

public class PrviFrame extends JFrame {

	private JPanel contentPane;
	JButton btnOk,btnNewButton_1;

	/**
	 * Create the frame.
	 */
	public PrviFrame() {
		setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
		setBounds(100, 100, 450, 300);
		contentPane = new JPanel();
		contentPane.setBorder(new EmptyBorder(5, 5, 5, 5));
		setContentPane(contentPane);
		contentPane.setLayout(null);
		
		btnOk = new JButton("OK");
		btnOk.addActionListener(new ActionListener() {
			public void actionPerformed(ActionEvent arg0) {
				btnNewButton_1.setText("klik");
			}
		});
		btnOk.setBounds(162, 119, 89, 74);
		contentPane.add(btnOk);
		
		btnNewButton_1 = new JButton("New button");
		btnNewButton_1.setBounds(162, 36, 89, 23);
		contentPane.add(btnNewButton_1);
		
		JButton btnNewButton_2 = new JButton("New button");
		btnNewButton_2.setBounds(314, 85, 89, 23);
		contentPane.add(btnNewButton_2);
	}
}
